class User{
  String userName;
  String password;

  User(this.userName,this.password);

  Map<String,dynamic> toJson(){
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userName'] = this.userName;
    data['password'] = this.password;
    return data;
  }
  User.fromJSon(Map<String,dynamic> map){
    this.userName = map['userName'];
    this.password = map['password'];
  }
}